/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package intmag;

import java.util.HashSet;
import java.util.Set;
import javax.swing.ImageIcon;

/**
 *
 * @author Den
 */
public class Storage {
    
    private static Set <Goods> goods=new HashSet<>();
    
   private static void initGoodsStorage()
   {
   int i=0;
   goods.add(new Goods(i++, "Tablet", new ImageIcon("intmag/images01.jpg"), 2999.99));
   goods.add(new Goods(i++, "PC", new ImageIcon("intmag/images02.jpg"), 3999.99));
   goods.add(new Goods(i++, "Com", new ImageIcon("intmag/images03.jpg"), 1999.99));
   
   }
  
    public static Storage createInstance() {
        initGoodsStorage();
        return new Storage();
    }
   
   public Goods search(Goods criterial)
   {
   return null;
   }
    
}
